import styled from 'styled-components'


//  我的地址
export const MyAddressStyle = styled.div`
  .main{
    height: 100%;
    background-color: #F5F5F5;
    padding: 0 .27rem;
  }

  .address-card{
    margin-top: .32rem;
    /* height: 3.2rem; */
    background-color: white;
    border-radius: .13rem;
    justify-content: unset;
  }

  .top{
    width: 100%;
    padding: 0 .4rem;
    padding-top: .36rem;
    box-sizing: border-box;
    .left{
      justify-content: unset;
      align-items: flex-start;
        .name{
          color: #474747;
          font-size: .4rem;
          font-weight: bold;
          span{
            color: #474747;
            opacity: .5;
            font-size: .32rem;
            font-weight: 500;
          }
        }

        .address{
          color: #474747;
        }
        .address-detail{
          color: #474747;
          font-size: .29rem;
          font-weight: 300;
        }
       
    }
    .right{
      img{
        width: .53rem;
        height: .48rem;
      }
    }
  }

  .line{
    height: 1px;
    background-color: #E6E6E6;
    width: 100%;
    margin-top: .39rem; 
  }

  .bottom{
    padding: 0 .4rem;
    box-sizing: border-box;
    height: 1.15rem;
    width: 100%;
    .set-default{
      img{
        width: .36rem;
        height:.36rem;
      }
      p{
        margin-left: .25rem;
      }
    }

    .option{
      .op-bu{
        width: 1.53rem;
        height: .56rem;
        border-radius: .13rem;
        color: white;
        background-color: #ff762e;
        border: none;
      }
    }
  }

  .add-address{
    bottom: .57rem;
    width: calc( 100vw - .54rem );
    margin-top: .4rem;
    height: 1.17rem;
    border-radius: .13rem;
    background-color: #ff762e;
    color: white;
    justify-content: center;
    div{
      img{
        width: .4rem;
        height: .36rem;
      }
      span{
        padding-left: .41rem;
      }
    }
  }


`



// 编辑地址
export const EditAddressStyle = styled.div`
  .main{
    height: 100vh;
    background-color: white;
    position: relative;
  }

  .select-address{
    width: 100vw;
    box-sizing: border-box;
    padding: .32rem .32rem;

    .into-address{
      background-color: #FF762E;
      text-align: center;
      font-size: .42rem;
      color: white;
      font-weight: bold;
      padding: .24rem 0;
      margin-bottom: .24rem;
    }

  }
  
  #input{
    font-size: 17px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 6rem;
    padding: .32rem .32rem;
    border: 2px;
    background-color: transparent;
    line-height: 1;
    box-sizing: border-box;
  }
  
  
  .bottom{
    margin: 0 .32rem;
    border: none;
    position: absolute;
    width: calc( 100% - .64rem );
    bottom: .57rem;
    height: .95rem;
    /* text-align: center; */
    background-color: #FF762E;
    line-height: .99rem;
    border-radius: .75rem;
    color: white;
    font-size: .4rem;
    font-weight: bold;
  }

`

// 地图选择地址

export const LocationStyle = styled.div`
  .location-box {
  position: absolute;
  z-index: 500;
  bottom: 0;
  left: .32rem;
  height: 7.13rem;
  width: 9.36rem;
  border-top-left-radius: .13rem;
  border-top-right-radius: .13rem;
  background-color: #fff;
}

.location-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: .4rem;
}

.address-li {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  height: 1.55rem;
  padding: 0 .4rem;
  border-bottom: 1px solid #ccc;
}

.location_-___--___---__ {
  display: block;
  width: 8.56rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* .amap-ui-misc-positionpicker {
  top: 20% !important;
} */

.amap-copyright {
  display: none !important;
}

.amap-control {
  display: none !important;
}
`
